package top.chukongxiang.monitorservice.javafx.core;

import org.h2.jdbcx.JdbcDataSource;

import javax.sql.DataSource;

/**
 * @author 楚孔响
 * @version 1.0
 * @date 2023/10/24 14:13
 */
public class MybatisFxConfig {

    public DataSource dataSource() {
        JdbcDataSource jdbcDataSource = new JdbcDataSource();
        jdbcDataSource.setURL("jdbc:h2:~/monitor.h2");
        return jdbcDataSource;
    }

}
